package concurrent.blockingQueue;

import org.junit.Test;

import java.util.concurrent.LinkedTransferQueue;

public class LinkedTransferQueueTest {

    @Test
    public void test() throws InterruptedException {
        LinkedTransferQueue<Integer> queue = new LinkedTransferQueue<>();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);

        System.out.println(queue.take());
        System.out.println(queue.take());
        System.out.println(queue.take());
        System.out.println(queue.take());
    }
}
